<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1 style="text-align: center" th:text="${name} + '的好朋友'"></h1>
    <table border="1" align="center" width="50%">
        <thead>
            <tr>
                <th>Id</th>
                <th>name</th>
                <th>age</th>
                <th>photo</th>
                <th>score</th>
            </tr>
        </thead>
        <tbody align="center" valign="center">
            <tr th:each="user : ${userList}">
                <td th:text="${user.id}"></td>
                <td th:text="${user.name}"></td>
                <td th:text="${user.age}"></td>
                <td>
                    <img th:src="@{'/img/' + ${user.photo}}" width="50" height="50">
                </td>
                <td th:text="${user.score}"></td>
            </tr>
        </tbody>
    </table>
</body>
</html>